package com.pjs.tdd;

public enum AccountType {
 current;
 
 public static AccountType lookup(AccountType accountTypeToLookup){
		for (AccountType accountType : AccountType.values()) {
			if(accountType.equals(accountTypeToLookup)){
				return accountType;
			}
		}
		throw new AccountException("Account Type not found!");
	}

}
